﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure
{
    public class EntityUpdateVersionException : Exception
    {
        private string code = null;
        
        public EntityUpdateVersionException(string code, string message) : this(code, message, null)
        {
        }

        public EntityUpdateVersionException(string code, string message, Exception innerException) : base(message, innerException)
        {
            this.code = code;
        }
        
        public string Code
        {
            get { return code; }
            set { code = value; }
        }
    }
}
